<template>
  <div class="schedulingDetail">
    <div style="height:50px">
      <el-button type="primary" style="float:left;margin-left:30px;" @click="goback">返回上一级</el-button>
    </div>
    <el-table :data="defaultData" border style="width: 100%">
      <el-table-column prop="time" align="center" label="日期"></el-table-column>
      <el-table-column prop="id" align="center" label="排班编号"></el-table-column>
      <el-table-column prop="schType" align="center" label="挂号类别"></el-table-column>
      <el-table-column prop="type" align="center" label="时间段"></el-table-column>
      <el-table-column prop="price" align="center" label="挂号费用"></el-table-column>
      <el-table-column prop="depCode" align="center" label="科室编号"></el-table-column>
      <el-table-column prop="docCode" align="center" label="医师编号"></el-table-column>
      <el-table-column prop="dzInfo" align="center" label="导诊信息"></el-table-column>
    </el-table>
  </div>
</template>
<script>
export default {
  data() {
    return {
      defaultData: []
    };
  },
  methods: {
    //返回
    goback() {
      this.$router.push({ path: "/medical/scheduling" });
    }
  },
  mounted() {
    var data = this.$route.params.data;
    if (data == undefined) {
      this.goback();
    } else {
      this.defaultData.push(data);
    }
  }
};
</script>
<style lang="scss" scoped>
.schedulingDetail {
  margin-top: 55px;
}
</style>